var nodes = {

    /**
     * Nodes table services field formatter
     * @param value
     * @returns {string}
     */
    servicesFormatter: function (value) {
        var services = new Array();
        var i;
        for (i in value) {
            services.push('<mark>' + value[i] + '</mark>');
        }
        return services.join('&nbsp;&nbsp;');
    },

    /**
     * Nodes table operation column formatter
     * @param val
     * @param row   row data
     * @param idx
     * @returns {string}
     */
    opFormatter: function (val, row, idx) {
        return '<button class="btn btn-sm btn-operate btn-xs" ' +
            'data-toggle="modal" data-target="#nodeDelModal" data-hostname="' + row.hostname + '">' +
            '<span class="glyphicon glyphicon-trash" ></span></button>';
    }
};

